package com.itheima.ydd.service;


import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.itheima.ydd.entity.YddArticle;
import com.itheima.ydd.entity.YddCate;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.ydd.common.ResultData;
import com.itheima.ydd.entity.YddCate;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author author
 * @since 2022-05-22
 */
public interface IYddCateService extends IService<YddCate> {

    /**
     * @description: 分页查询及条件查询
     * @author: 黄伟兴
     * @date: 2022/9/8 12:38
     * @param: [catename, page, limit]
     * @return: com.itheima.ydd.common.ResultData
     **/
    ResultData getList(String catename, String page, String limit);

    /**
     * @description: 获取分类详细信息
     * @author: 黄伟兴
     * @date: 2022/9/8 13:05
     * @param: [id]
     * @return: com.itheima.ydd.common.ResultData
     **/
    ResultData getDetail(Integer id);

    /**
     * @description: 修改分类信息
     * @author: 黄伟兴
     * @date: 2022/9/8 13:19
     * @param: []
     * @return: com.itheima.ydd.common.ResultData
     **/
    ResultData updateYddCate(YddCate yddCate);

    /**
     * @description: 删除分类
     * @author: 黄伟兴
     * @date: 2022/9/8 13:37
     * @param: [id]
     * @return: com.itheima.ydd.common.ResultData
     **/
    ResultData delete(Integer id);

    /**
     * @description: 添加新分类
     * @author: 黄伟兴
     * @date: 2022/9/8 13:51
     * @param: [yddCate]
     * @return: com.itheima.ydd.common.ResultData
     **/
    ResultData add(YddCate yddCate);

    /**
     * @description: 分类信息-全部
     * @author: 黄伟兴
     * @date: 2022/9/8 14:17
     * @param: []
     * @return: com.itheima.ydd.common.ResultData
     **/
    ResultData getAll();
}
